# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-pytaglib
pkgver=1.5.0
pkgrel=3
pkgdesc="Python bindigs for the TagLib audio metadata library"
url="https://taglib.org"
arch="all"
license="GPL-3.0-or-later"
depends="python3"
makedepends="cython py3-setuptools python3-dev taglib-dev"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/p/pytaglib/pytaglib-$pkgver.tar.gz"
builddir="$srcdir/pytaglib-$pkgver"

build() {
	PYTAGLIB_CYTHONIZE=1 \
	python3 setup.py build
}

check() {
	export PYTHONPATH="$(echo $builddir/build/lib.*)"
	py.test-3
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
8f4de0e8798830c7114b0cc3c1d15595fe00f61b53c8a5653a5eb38ba4caec23fbb538303ce92e101c614f60426eb172ed87bff4da6aaf75580bdee4765518d3  pytaglib-1.5.0.tar.gz
"
